package com.mspbots.core.wise.model;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.StringTypeHandler;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName(value = "users", autoResultMap = true)
public class Users extends TenantEntity {

    private String username;
    private String password;
    private String firstName;
    private String lastName;
    @TableField(typeHandler = StringTypeHandler.class)
    private String authorities;
    private Boolean enabled;

    private LocalDateTime createdDate;
    private LocalDateTime modifiedTime;
    private LocalDateTime lastLogin;
    private Long managerUserId;
    private String timezoneFull;
    private String timezoneShort;
    private String timezoneOffset;
}

